<template>
  <el-config-provider :locale="elementLocales[locale]">
    <RouterView></RouterView>
  </el-config-provider>
</template>

<script setup>
//1、引入element plus的中英文配置
import { elementLocales } from '@/i18n'
//2、配置当前的语言类型
const { locale } = useI18n()
locale.value = localStorage.getItem('locale') || 'zh-cn'
</script>

<style>
html,
body {
  height: 100%;
}

#app {
  height: 100%;
  overflow: hidden;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor {
  cursor: pointer;
}

.txt-c {
  text-align: center;
}

.w100p {
  width: 100%;
}

.main-body {
  margin-top: 20px;
  margin-right: 20px;
  margin-left: 20px;
}
</style>
